package com.viewpagerfrag;

import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.dingqb.more.R;

public class FragA extends Fragment {
	View view;
	private TextView tv_a;

	@Override
	public void onAttach(Activity activity) {
		super.onAttach(activity);
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		view = inflater.inflate(R.layout.frag_a, null);
		tv_a = (TextView) view.findViewById(R.id.tv_a);
		
		
		return view;
	}

	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

	}

	@Override
	public void onResume() {
		super.onResume();
		String s = "null";
		if (getArguments() != null) {
			Bundle b = getArguments();
			s = b.getString("f");
		}
		tv_a.setText(s + "123");
	}

}
